package com.sc.nft.dao;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sc.nft.entity.DaoCollectionGiveLog;
import com.sc.nft.entity.req.DaoCollectionGiveLogPageRequest;
import com.sc.nft.entity.vo.GetDaoCollectionGiveLogPageVO;
import com.sc.nft.mapper.DaoCollectionGiveLogMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Repository;

/**
 * @author 朱梦晨
 * @Description:
 * @date 2024-10-23
 */
@Slf4j
@Repository
public class DaoCollectionGiveLogDao extends ServiceImpl<DaoCollectionGiveLogMapper, DaoCollectionGiveLog> {



    public Page<GetDaoCollectionGiveLogPageVO> getDaoCollectionGiveLogPage(DaoCollectionGiveLogPageRequest dto) {
        return baseMapper.getDaoCollectionGiveLogPage(dto.toMp(),dto.getGiveUserTel(),dto.getReceiveUserTel(),dto.getCollectionId(),
                dto.getStartTime(),dto.getEndTime());
    }
}
